package com.example.demo.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;

@TableName("goods")
@Data

public class Goods {
    @TableId(type = IdType.AUTO)
//    如果主键不是？第二个视频35：40
    private Integer id;
    private String name;
    private BigDecimal price;
    private String photo;
    private Integer state;

}